/*
 * @Author: atony2099
 * @Date: 2018-10-15 00:52:33
 * @Last Modified by: atony2099
 * @Last Modified time: 2018-11-01 19:45:16
 */
'use strict';
const process = require('child_process');

process.exec('touch xxxxxxxxxx.js', function(error, stdout, stderr) {
  console.log(error, 'touchxxxxxxxxxx', __dirname);

  process.exec('git add .', function(error, stdout, stderr) {
    console.log(error, 'succes ');

    process.exec('git commit -m node-push', function(error, stdout, stderr) {
      console.log(error, 'succes ');
      process.exec('git push origin master', function(error, stdout, stderr) {
        console.log(error, 'succes ');
      });
    });
  });
});
